Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p>The "Get date and time" button will run a script in the inline frame.</p> <iframe id="myFrame" src="../tags/demo_iframe_sandbox.html" sandbox="allow-scripts"> <p>Your browser does not support iframes.</p> </iframe> <p>Click the "Try it" button to display the value of the sandbox attribute.</p> <p><strong>Note:</strong> The sandbox attribute is not supported in Internet Explorer 9 and earlier versions, or in Opera.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var x = document.getElementById("myFrame").sandbox; document.getElementById("demo").innerHTML = x; } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_iframe_sandbox by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:32:08 GMT --> </html>
Result:
Try it Yourself - © w3schools.com